package com.mql.onlinechatsystem.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 马庆林
 * @since 2023-03-08
 */
@TableName("tb_userrelation")
@ApiModel(value = "TbUserrelation对象", description = "")
public class TbUserrelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("当前用户id")
    private String userid;

    @ApiModelProperty("好友的id")
    private String friendid;

    @ApiModelProperty("0-拉黑的人，1-普通好友，2、特别关心")
    private Integer relationlevel;

    private Integer isdelete;

    @ApiModelProperty("创建时间")
    private LocalDateTime createtime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getFriendid() {
        return friendid;
    }

    public void setFriendid(String friendid) {
        this.friendid = friendid;
    }

    public Integer getRelationlevel() {
        return relationlevel;
    }

    public void setRelationlevel(Integer relationlevel) {
        this.relationlevel = relationlevel;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "TbUserrelation{" +
            "id = " + id +
            ", userid = " + userid +
            ", friendid = " + friendid +
            ", relationlevel = " + relationlevel +
            ", isdelete = " + isdelete +
            ", createtime = " + createtime +
        "}";
    }
}
